<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>练习1</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>
<body>
    <div id="aaa">
        <h1>{{year}}年{{mouth}}月{{day}}日</h1>
        <h2>{{num+1}}</h2>
        <h3 v-text="name">{{year}}</h3>
    </div>
    <script>
        const vm = new Vue({
            el:'#aaa',
            data() {
                return {
                    name:"张三",
                    year:"2022",
                    mouth:"4",
                    day:"20",
                    num:20
                };
            },
        });
        //2022年4月20日
        //21
    </script>
</body>
</html>